import { BasicColumn, FormSchema } from '/@/components/Table';
// 表格字段
export const columns: BasicColumn[] = [
  {
    title: '内容',
    dataIndex: 'title',
  },
  {
    title: '操作',
    dataIndex: 'action',
    slots: { customRender: 'action' },
    width: 70,
  },
];
// 表格数据
export const dataSource = [
  {
    id: 1,
    content: '第一屏',
    title: '标题',
  },
  {
    id: 2,
    content: '第二屏',
  },
  {
    id: 3,
    content: '第三屏',
  },
  {
    id: 4,
    content: '第四屏',
  },
];

export const getAccountList = () => {
  return dataSource;
};

export const buildingFormSchema: FormSchema[] = [
  {
    field: 'title',
    label: '标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    label: '背景图',
    field: 'coverUrl',
    component: 'Upload',
    slot: 'coverUrlSlot',
  },
];

export const secondFormSchema: FormSchema[] = [
  {
    field: 'title1',
    label: '第一张标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'desc1',
    label: '第一张图描述',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    label: '上传第一张图片',
    field: 'coverUrl1',
    component: 'Upload',
    slot: 'coverUrlSlot',
  },
  {
    field: 'title2',
    label: '第二张标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'desc2',
    label: '第二张图描述',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    label: '上传第二张图片',
    field: 'coverUrl2',
    component: 'Upload',
    slot: 'coverUrlSlot',
  },
  {
    field: 'title3',
    label: '第三张标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'desc3',
    label: '第三张图描述',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    label: '上传第三张图片',
    field: 'coverUrl2',
    component: 'Upload',
    slot: 'coverUrlSlot',
  },
];

export const thirdFormSchema: FormSchema[] = [
  {
    field: 'cTitle',
    label: '中文标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'cTitle',
    label: '英文标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    label: '背景图',
    field: 'coverUrl',
    component: 'Upload',
    slot: 'coverUrlSlot',
  },
];

export const forthFormSchema: FormSchema[] = [
  {
    field: 'bigCTitle',
    label: '大标题中文',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'bigCTitle',
    label: '大标题英文',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'bigTitleDesc',
    label: '大标题描述',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'fSmallTitle',
    label: '第一个小标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'fSmallTitleDesc',
    label: '第一个小标题描述',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    label: '第一个小标题图标',
    field: 'fSmallCoverUrl',
    component: 'Upload',
    slot: 'coverUrlSlot',
  },
  {
    field: 'sSmallTitle',
    label: '第二个小标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'sSmallTitleDesc',
    label: '第二个小标题描述',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    label: '第二个小标题图标',
    field: 'sSmallCoverUrl',
    component: 'Upload',
    slot: 'coverUrlSlot',
  },
  {
    field: 'tSmallTitle',
    label: '第三个小标题',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    field: 'tSmallTitleDesc',
    label: '第三个小标题描述',
    component: 'Input',
    componentProps: {
      placeholder: '请输入',
    },
  },
  {
    label: '第三个小标题图标',
    field: 'tSmallCoverUrl',
    component: 'Upload',
    slot: 'coverUrlSlot',
  },
];
